import Vue from 'vue'

// 引入整个组件库 ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
// 引入整个组件库 ElementUI

// 按需引入组件库
import {
  Button,
  Card,
  Form,
  FormItem,
  Input,
  Table,
  TableColumn,
  Dialog,
  Checkbox
} from 'element-ui'

Vue.use(Button)
Vue.use(Card)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Dialog)
Vue.use(Checkbox)
// 导入 折叠动画
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition'
Vue.component(CollapseTransition.name, CollapseTransition)

// 导入 message 消息框
import { Message } from 'element-ui'
Vue.prototype.$message = Message

// 导入 Notification 通知
import { Notification } from 'element-ui'
Vue.prototype.$notify = Notification
